import * as types from '../../action-type'
import {fetchSlides} from "../../../api/home";

const homeActions = {
  async [types.SET_SLIDES]({commit}) {
    let res = await fetchSlides()
    commit(types.SET_SLIDES, res);
  }
}

export default homeActions